﻿using Architecture.Repository.Interface;
using Architeture.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.Service
{
    public class ProvinceService : IProvinceService
    {
        protected readonly IProvincelRepository proRep;

        public ProvinceService(IProvincelRepository proRep)
        {
            this.proRep = proRep;
        }

        public async Task<List<ProvinceInfo>> GetProvinceInfo()
        {
            return await proRep.GetAllAsync();
        }
    }
}
